#include <string>
#include <iostream>
#include <Request.cpp>

using namespace std;

class LabSchedule{
public:
	void createschedule(string day, string instructor, string startTime, string endTime, string course){
		Request r = new Request();
		string username ="", pw="", query="";
		
		//authenticate user is allowed to create the schedule
		//if authenticate returns false, exit function and notify user
		if (!r.authenticate(username.c_str(), pw.c_str())){
			cout << "You do not have proper credentials to create a lab session";
			return;
		}

		//now that it passes authentication, we can give it a query to insert
		//something in the table
		r.executeQuery(query);

		//notify user is query execution was successful or not

		//tell the request class that your done with the request
		r.close();

	}
	void modifyschedule(int scheduleID, string day, string instructor){
		Request r = new Request();
		string username ="", pw ="";
		//give the query the specific ID in the table to change the data
		string query="";
		
		//authenticate user
		if (!r.authenticate(username, pw)){
			cout << "You do not have proper credentials to change a lab session";
			return;
		}

		//give it the special query to change the row in the table
		r.executeQuery(query);

		//tell user if modification was successful or not

		r.close();
        

	}
	void deleteschedule(int scheduleID){
		Request r = new Request();
		string username="", pw="", query="";

		if(!r.authenticate(username, pw)){
			cout << "You do not have proper credentials to delete a lab session";
			return;
		}

		//send a query to somehow delete a row from the table
		r.executeQuery(query);

		//let the user know if it was deleted successful or now

		r.close();
	}
	void viewTASchedule(int taScheduleID){
		//no authentication necessary to retrive schedule info

		string query="";

		Request r = new Request();

		r.executeQuery(query);

		//get the info from the query and display it to the user

		r.close;
	}
private:
	string day, instructor, startTime, endTime, course;
};